# Common build variables.

VER	     = 
OFFSET	     = 
CC           = g++ 
LD           = ld
LDSO	     = $(CC) -shared -nostartfiles
CFLAGS	     = -fPIC -shared $(OFFSET) -O2
LINKFLAGS    = -lpthread -lz
MKDIR        = mkdir -p
RM           = rm -f
CP           = cp -fp
ECHO         = echo
FIND         = find
MV           = mv -f
LN           = ln -s
AR           = ar -r
ARFLAGS      = rv
DEBUG        = 


LINKFLAGS = /root/bestidiocs2024/ch06/longmaiskf0016-stu/longmaiskf0016-stu/skf/linux/x64/libgm3000.1.0.so
OBJSMAIN    = main.o
MAIN    = fingerMgrDemo



# Complie all
all: $(MAIN)
$(MAIN): $(OBJSMAIN)
	$(RM) $(MAIN)
	$(CC) -o $(MAIN) $(OBJSMAIN) $(LINKFLAGS)

clean:
	$(RM) $(MAIN)
	$(RM) *.o $(MAIN)

# Complie the source code 

%.o: %.c
	$(CC) -c -o $@ $? 
%.o: %.cpp
	$(CC) -c -o $@ $? 
